def numericSum(n):
    s=0
    while n !=0:
        l = n % 10
        s=s+l
        n=n//10
    return s
m=eval(input("请输入一个数:"))
print(numericSum(m))
